package org.adorsys.aderp.jpa.api.xchange;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class DataResponse implements Serializable {

	private static final long serialVersionUID = 1L;
	
	public static final int RESULT_CODE_SUCCESS=0;
	public static final int RESULT_CODE_ERROR=1;

	private String entityName;
	
	private String entityKey;

	private Map<String, String> entityData = new HashMap<String, String>();
	
	private int resultCode = RESULT_CODE_SUCCESS;
	
	private String resultDetail;

	public String getEntityName() {
		return entityName;
	}

	public void setEntityName(String entityName) {
		this.entityName = entityName;
	}

	public String getEntityKey() {
		return entityKey;
	}

	public void setEntityKey(String entityKey) {
		this.entityKey = entityKey;
	}

	public Map<String, String> getEntityData() {
		return entityData;
	}

	public void setEntityData(Map<String, String> entityData) {
		this.entityData = entityData;
	}

	public String getResultDetail() {
		return resultDetail;
	}

	public void setResultDetail(String resultDetail) {
		this.resultDetail = resultDetail;
	}

	public int getResultCode() {
		return resultCode;
	}

	public void setResultCode(int resultCode) {
		this.resultCode = resultCode;
	}

}
